//package com.terabits.smartriver.job;
//
//import com.terabits.smartriver.constants.ModelEnum;
//import com.terabits.smartriver.mapper.ModelMapper;
//import com.terabits.smartriver.service.CalculationService;
//import com.terabits.smartriver.service.impl.BaseService;
//import com.terabits.smartriver.util.PageData;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.util.Date;
//import java.util.List;
//
//@Component
//public class CheckModel extends BaseService {
//    @Autowired
//    private ModelMapper modelMapper;
//
//    @Autowired
//    private CalculationService calculationService;
//
//    @Scheduled(cron = "0 */1 * * * ?")
//    public void checkModelAlram() {
//
//        //获取所有
//        List<PageData> models = modelMapper.selectModelDevice(new PageData());
//        for (PageData one : models) {
//            calculationService.checkSingleModel(one);
//        }
//        System.out.println("##################################设备告警处理完成##################################");
////        calculationService.updateDeviceStatus(0, null);
//
//    }
//
//
//}
